package chain

import (
	"fmt"
	"io"
)

type tFileWriter struct {
	file string
}

func newFileWriter(file string) io.StringWriter {
	return &tFileWriter{
		file,
	}
}

func (me *tFileWriter) WriteString(s string) (n int, e error) {
	fmt.Printf("tFileWriter.WriteString, file=%s, msg=%s\n", me.file, s)
	return len(s), nil
}